import {
  IsNotEmpty,
} from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';

export class LoginDto {
  @ApiProperty({ required: true, description: '用户名' })
  @IsNotEmpty({ message: '不能为空' })
  readonly username: string;

  @ApiProperty({ required: true, description: '密码' })
  @IsNotEmpty({ message: '不能为空' })
  readonly password: string;

}
